import request from "../request.js"
import cfg from "../config.js"
import utils from "../utils.js"

let page_type = {
    open: function (page_info) {
        let page_html_id=page_info.page_html_id;
        let property=page_info.property;
        let ext_js=page_info.ext_js;
        let page_id=page_info.page_id;
        let rights=page_info.rights;
        let params=page_info.params;
        $("#" + page_html_id).addClass("row");
        $("#" + page_html_id).html("\
        <div class='col-md-12 col-sm-12 col-xs-12'>\
            <div class='view-part form-view-part'></div>\
        </div>");

        let viewJSON = property.page;
        
        let amis = amisRequire('amis/embed');
        let view_amisScoped = amis.embed(
            '#' + page_html_id + " .form-view-part", viewJSON, {},
            {
                theme: 'antd'
            }
        );
    }
}

export default page_type;